using System;
using System.Collections.Generic;
using System.Text;

namespace PotonViewer
{
    public class Utility
    {
        public static bool IsLoadableExtention(string sExt)
        {
            if (sExt.StartsWith("."))
            {
                sExt = sExt.Substring(1);
            }
            if (sExt.Length == 0)
            {
                return false;
            }
            sExt = ";" + sExt.ToLower() + ";";
            //            string sLoadFileExts = Properties.Settings.Default.LoadFileExts;
            string sLoadFileExts = "bmp;png;jpg";
            sLoadFileExts = ";" + sLoadFileExts + ";";
            return (sLoadFileExts.IndexOf(sExt) >= 0);
        }

    }
}
